package ttOrder.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "users")
public class User {
	private static final long serialVersionUID = -6530168542617015609L;
	@Id
	@Column(name = "id", length = 10, nullable = false)
	private String userId;
	@Column(name = "name", length = 1000, nullable = false)
	private String name;
	@Column(name = "password", length = 1000, nullable = false)
	private String password;
	@Column(name = "identity", length = 1000, nullable = false)
	private Integer identity;

	public User() {
		super();
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getIdentity() {
		return identity;
	}

	public void setIdentity(Integer identity) {
		this.identity = identity;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
